<?php

class GameSyncAction extends SzAbstractAction
{
    Protected $paramTypes = array(
        SzAbstractAction::TYPE_INT,
        SzAbstractAction::TYPE_INT,
        SzAbstractAction::TYPE_INT,
        SzAbstractAction::TYPE_INT,
        SzAbstractAction::TYPE_INT,
    );

    /**
     * 同步玩家数据
     *
     * @param int $userId 用户ID
     * @param int $level 用户ID
     * @param int $exp 用户ID
     * @param int $token 用户ID
     * @param int $money 用户ID
     * @return SzResponse
     */
    public function execute($userId, $level, $exp, $token, $money)
    {
        return $this->buildResponse(
            GameService::get()->syncUserInfo($userId)
        );
    }
}